package com.icow.wms.basic.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
@Slf4j
public class InitDoorServer {

    @PostConstruct
    private void init() {
        try {
            new DoorServer().start(9000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        try {
            new LiftServer().start(9001);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
